package com.gzhryc.net_marketing.core.models;

import com.gzhryc.common.data.ITreeEntity;

import java.util.List;

public class GoodsTypeItem implements ITreeEntity<GoodsTypeItem, Long> {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String code;
    private Integer classify;
    private String name;
    private Long parentId;
    private List<GoodsTypeItem> children;

    @Override
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getClassify() {
        return classify;
    }

    public void setClassify(Integer classify) {
        this.classify = classify;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    @Override
    public Long getParentId() {
        return parentId;
    }

    @Override
    public List<GoodsTypeItem> getChildren() {
        return this.children;
    }

    @Override
    public void setChildren(List<GoodsTypeItem> children) {
        this.children = children;
    }
}
